mongodb extended json spec

aliases
No value
tags
mongodb/syntax
description
No value
links
0200 mongodb πŸ₯¬ https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/#type-representations
status
No value
project
false
area
false
resource
false
title
mongodb extended json spec
created
2025-07-23T20:50:08
updated
2025-07-23T20:53:10

README

이 λ¬Έμ„œλŠ” MongoDB Manualμ—μ„œ λ°œμ·Œν•œ κ²ƒμœΌλ‘œ, BSON 포맷으둜 μ €μž₯λ λ•Œ, λ˜λŠ” λ°˜λŒ€λ‘œ λ‹€μ–‘ν•œ νƒ€μž…μ„ raw query둜 μž‘μ„±ν•˜κ³  μ‹Άμ„λ•Œ μ°Έμ‘°ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

Example Field Name Canonical Format Relaxed Format
"_id": {"$oid":"5d505646cf6d4fe581014ab2"} {"$oid":"5d505646cf6d4fe581014ab2"}
"arrayField": ["hello",{"$numberInt":"10"}] ["hello",10]
"dateField": {"$date":{"$numberLong":"1565546054692"}} {"$date":"2019-08-11T17:54:14.692Z"}
"dateBefore1970": {"$date":{"$numberLong":"-1577923200000"}} {"$date":{"$numberLong":"-1577923200000"}}
"decimal128Field": {"$numberDecimal":"10.99"} {"$numberDecimal":"10.99"}
"documentField":
"doubleField": {"$numberDouble":"10.5"} 10.5
"infiniteNumber" {"$numberDouble":"Infinity"} {"$numberDouble":"Infinity"}
"int32field": {"$numberInt":"10"} 10
"int64Field": {"$numberLong":"50"} 50
"minKeyField": {"$minKey":1} {"$minKey":1}
"maxKeyField": {"$maxKey":1} {"$maxKey":1}
"regexField": {"$regularExpression":{"pattern":"^H","options":"i"}} {"$regularExpression":{"pattern":"^H","options":"i"}}
"timestampField": {"$timestamp":{"t":1565545664,"i":1}} {"$timestamp":{"t":1565545664,"i":1}}
"uuid": {"$uuid":"3b241101-e2bb-4255-8caf-4136c566a962"} {"$uuid":"3b241101-e2bb-4255-8caf-4136c566a962"}